define(
    function (require) {
        var BaseFormModel = require('common/FormModel');
        var Data = require('./Data');
        var datasource = require('er/datasource');
        var u = require('underscore');
        var m = require('moment');

        function MallFormModel() {
            BaseFormModel.apply(this, arguments);
            var entityName = this.getUrlType();
            this.addData(new Data(entityName));
        }

        MallFormModel.prototype.prepare = function () {
            BaseFormModel.prototype.prepare.call(this);
        };

        MallFormModel.prototype.save = function(entity) {
            return BaseFormModel.prototype.save.apply(this, arguments);
        };

        MallFormModel.prototype.validateEntity = function (entity) {
            return BaseFormModel.prototype.validateEntity.apply(this, arguments);
        };

        require('er/util').inherits(MallFormModel, BaseFormModel);
        return MallFormModel;
    }
);
